import React from 'react';
import {Route} from "react-router-dom";

const NoMatch = () => {
  return (
    <div>404</div>
  )
}

function Status() {
  return (
    <Route
      render={({ staticContext }) => {
        if (staticContext) {
          staticContext.status = 404;
        }
        return <NoMatch/>;
      }}
    />
  );
}

export default Status;
